#include <stdio.h>

void CharPyramid(int n, char ch);

int main()
{
    int n;
    char ch;

    scanf("%d %c", &n, &ch);
    CharPyramid(n, ch);

    return 0;
}

/* 请在这里填写答案 */
void CharPyramid(int n, char ch)
{
    for (int i = 1; i <= n; i++)
    {
        for (int output_blank = n - i - 1; output_blank >= 0; output_blank--)
        {
            printf(" ");
        }
        for (int output_char = 1; output_char <= i; output_char++)
        {
            printf("%c ", ch);
        }
        printf("\n");
    }
}
